class AlarmInfo:
    def __init__(self, event, host_map):
        self.machine_id = event["Resource"]["labels"]["Host"]
        self.event_id = event['Attributes']['entity_id']
        self.time = event['Timestamp']
        self.host = host_map.get(self.machine_id, '-')
        self.event = event['Resource']['metric'].removeprefix("gala_gopher_")
        self.description = event['Body']


class AlarmTopo:
    def __init__(self):
        self.event = list()
        self.entities = list()
        self.link = list()
